﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace HotelManageSystem.Models
{
    public class RoomInfoModel
    {
        [Key]
        //[ScaffoldColumn(false)]
        [ReadOnly(true)]
        [DisplayName("房间编号")]
        public string ID { get; set; }

        [Required]
        [DisplayName("房间名称")]
        public string Name { get; set; }

        [Required]
        [DisplayName("床数量")]
        public int BedNum { get; set; }

        [Required]
        [UIHint("RoomTypeDDL")]
        [DisplayName("房间类型")]
        public string RoomTypeName{ get; set; }

        [Required]
        [DisplayName("房间状态")]
        [UIHint("RoomStateDDL")]
        public string RoomStateName { get; set; }
        
        [Required]
        [UIHint("FloorDDL")]
        [DisplayName("楼层")]
        public string FloorName { get; set; }
    }
}